<%--
  Created by IntelliJ IDEA.
  User: TianyuChen
  Date: 2020/3/29
  Time: 20:39
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<head>
    <title>show</title>
</head>
<body>
    <table border="1">
        <tr>
            <th>编号</th>
            <th>菜单名称</th>
            <th>父菜单名称</th>
            <th>修改</th>
        </tr>
        <c:forEach items="${menus}" var="menu">
            <tr>
                <td>${menu.id}</td>
                <td>${menu.name}</td>
                <c:if test="${menu.parent==null}">
                    <td>无</td>
                </c:if>
                <c:if test="${menu.parent!=null}">
                    <td>${menu.parent.name}</td>
                </c:if>
                <td><a href="showMenu?id=${menu.id}">修改</a> </td>
            </tr>

            <tr></tr>
        </c:forEach>

    </table>
</body>
</html>
